﻿using System;

namespace TEST0421
{
    class Program
    {
    //    1.图形类：求周长，面积（三角形， 四边形， 圆形）
        
        static void Main(string[] args)
        {
            Triangle t = new Triangle
            {
                L1 = 3,
                L2 = 4,
                L3 = 5
            };
            t.Calculate();
            t.GetValue();

            Console.WriteLine("----------------------------");
            quadrangle q = new quadrangle
            {
                Length = 4,
                Wideth = 3
            };
            q.Calculate();
            q.GetValue();

            Console.WriteLine("----------------------------");
            Circle c = new Circle
            {
                Radius = 3
            };
            c.Calculate();
            c.GetValue();
        }
    }
}
